package com.open.fei.service.impl;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.stereotype.Service;

/**
 * @author zhaoYuFei
 */
@Service
public class TestServiceImpl {
    @SentinelResource(value = "getUserName",blockHandler = "blockHandlerGetUser")
    public String getUserName() {
        return "getUser";
    }
    public String blockHandlerGetUser() {
        return "请稍后再试";
    }
}
